

Pod::Spec.new do |s|
  s.name             = "BCFoundation"
  s.version          = "1.0.0"
  s.summary          = "Foundation基础模块"
  s.description      = <<-DESC.gsub(/^\s*\|?/,'')
                       Foundation基础模块，提供NSString、NSArray等等category。

                       | * Markdown format.
                       | * Don't worry about the indent, we strip it!
                       DESC
  s.homepage         = "https://gitlab.leke.cn/health-huihui/app/ios/ios-component/BCFoundation.git"
  # s.screenshots     = "www.example.com/screenshots_1", "www.example.com/screenshots_2"
  s.license          = 'BSD'
  s.author           = { "chasel" => "chenchun1@cnstrong.cn" }
  s.source           = { :git => "git@gitlab.leke.cn:health-huihui/app/ios/ios-component/BCFoundation.git", :branch => "master" }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.platform     = :ios, '8.0'
  s.requires_arc = true

  s.default_subspec = 'Core'
  
  # 核心库
  s.subspec 'Core' do |core|
       core.public_header_files = 'Foundation/Core/**/*.h'
       core.source_files = 'Foundation/Core/**/*.{h,m}'
   end
  
  # 核心库
  s.subspec 'CoreSwift' do |coreSwift|
      coreSwift.source_files = 'Foundation/CoreSwift/**/*.{h,m,swift}'
  end
  
  # timer
  s.subspec 'Timer' do |timer|
      timer.public_header_files = 'Foundation/Timer/**/*.h'
      timer.source_files = 'Foundation/Timer/**/*.{h,m}'
  end
  
  # 核心库
  s.subspec 'Utils' do |utils|
       utils.public_header_files = 'Foundation/Utils/**/*.h'
       utils.source_files = 'Foundation/Utils/**/*.{h,m}'
   end
  

  # image gif
  s.subspec 'Gif' do |gif|
    gif.public_header_files = 'Foundation/Gif/**/*.h'
    gif.source_files = 'Foundation/Gif/**/*.{h,m}'
  end
  
  
  # NSMutableAttributedString
  s.subspec 'AttributedString' do |attrStr|
    attrStr.public_header_files = 'Foundation/AttributedString/**/*.h'
    attrStr.source_files = 'Foundation/AttributedString/**/*.{h,m}'
    attrStr.dependency 'BCFoundation/Core'
    attrStr.weak_frameworks = 'CoreText'
  end
  
  # UIDevice
  s.subspec 'Device' do |device|
    device.public_header_files = 'Foundation/Device/**/*.h'
    device.source_files = 'Foundation/Device/**/*.{h,m}'
    device.dependency 'BCFoundation/Core'
  end
  
  # ReactNative 引擎模块
  s.subspec 'RNEngine' do |rnEngine|
    rnEngine.public_header_files = 'Foundation/RNEngine/**/*.h'
    rnEngine.source_files = 'Foundation/RNEngine/**/*.{h,m}'
    rnEngine.dependency 'BCFoundation/Core'
  end
  
end
